import request from '@/utils/request'

// 防患治理
export function getSecurityRiskHandleList(data) {
  return request({
    url: '/api/securityManage/securityRiskHandle/getSecurityRiskHandleList',
    method: 'post',
    data
  })
}

export function addSecurityRiskHandle(data) {
  return request({
    url: '/api/securityManage/securityRiskHandle/addSecurityRiskHandle',
    method: 'post',
    data
  })
}

export function updateSecurityRiskHandle(data) {
  return request({
    url: '/api/securityManage/securityRiskHandle/updateSecurityRiskHandle',
    method: 'post',
    data
  })
}

export function deleteSecurityRiskHandle(params) {
  return request({
    url: '/api/securityManage/securityRiskHandle/deleteSecurityRiskHandle',
    method: 'post',
    params
  })
}

export function getSecurityRiskHandleDetail(params) {
  return request({
    url: '/api/securityManage/securityRiskHandle/getSecurityRiskHandleDetail',
    method: 'post',
    params
  })
}

// 重大危险源清单
export function getRiskSourceChecklistList(data) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/getRiskSourceChecklistList',
    method: 'post',
    data
  })
}

export function addRiskSourceChecklist(data) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/addRiskSourceChecklist',
    method: 'post',
    data
  })
}

export function updateRiskSourceChecklist(data) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/updateRiskSourceChecklist',
    method: 'post',
    data
  })
}

export function deleteRiskSourceChecklist(params) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/deleteRiskSourceChecklist',
    method: 'post',
    params
  })
}

export function exportRiskSourceChecklist(params) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/exportRiskSourceChecklist',
    method: 'post',
    responseType: 'blob',
    params
  })
}

export function getRiskSourceChecklistDetail(params) {
  return request({
    url: '/api/securityManage/riskSourceChecklist/getRiskSourceChecklistDetail',
    method: 'post',
    params
  })
}

// 安全培训
export function getSecurityTrainList(data) {
  return request({
    url: '/api/securityManage/securityTrain/getSecurityTrainList',
    method: 'post',
    data
  })
}

export function addSecurityTrain(data) {
  return request({
    url: '/api/securityManage/securityTrain/addSecurityTrain',
    method: 'post',
    data
  })
}

export function updateSecurityTrain(data) {
  return request({
    url: '/api/securityManage/securityTrain/updateSecurityTrain',
    method: 'post',
    data
  })
}

export function deleteSecurityTrain(params) {
  return request({
    url: '/api/securityManage/securityTrain/deleteSecurityTrain',
    method: 'post',
    params
  })
}

export function getSecurityTrainDetail(params) {
  return request({
    url: '/api/securityManage/securityTrain/getSecurityTrainDetail',
    method: 'post',
    params
  })
}

export function addSecurityRiskCategory(data) {
  return request({
    url: '/api/securityManage/securityRiskCategory/addSecurityRiskCategory',
    method: 'post',
    data
  })
}
export function updateSecurityRiskCategory(data) {
  return request({
    url: '/api/securityManage/securityRiskCategory/updateSecurityRiskCategory',
    method: 'post',
    data
  })
}
export function deleteSecurityRiskCategory(params) {
  return request({
    url: '/api/securityManage/securityRiskCategory/deleteSecurityRiskCategory',
    method: 'post',
    params
  })
}
export function getSecurityRiskCategoryTree(params) {
  return request({
    url: '/api/securityManage/securityRiskCategory/getSecurityRiskCategoryTree',
    method: 'post',
    params
  })
}
export function addSecurityRiskDb(data) {
  return request({
    url: '/api/securityManage/securityRiskDb/addSecurityRiskDb',
    method: 'post',
    data
  })
}
export function deleteSecurityRiskDb(params) {
  return request({
    url: '/api/securityManage/securityRiskDb/deleteSecurityRiskDb',
    method: 'post',
    params
  })
}
export function getSecurityRiskDbList(data) {
  return request({
    url: '/api/securityManage/securityRiskDb/getSecurityRiskDbList',
    method: 'post',
    data
  })
}
export function updateSecurityRiskDb(data) {
  return request({
    url: '/api/securityManage/securityRiskDb/updateSecurityRiskDb',
    method: 'post',
    data
  })
}
export function exportSecurityRiskDb(params) {
  return request({
    url: '/api/securityManage/securityRiskDb/exportSecurityRiskDb',
    method: 'post',
    responseType: 'blob',
    params
  })
}
export function addEmergencyDrills(data) {
  return request({
    url: '/api/securityManage/emergencyDrills/addEmergencyDrills',
    method: 'post',
    data
  })
}
export function deleteEmergencyDrills(params) {
  return request({
    url: '/api/securityManage/emergencyDrills/deleteEmergencyDrills',
    method: 'post',
    params
  })
}
export function getEmergencyDrillsDetail(params) {
  return request({
    url: '/api/securityManage/emergencyDrills/getEmergencyDrillsDetail',
    method: 'post',
    params
  })
}
export function getEmergencyDrillsList(data) {
  return request({
    url: '/api/securityManage/emergencyDrills/getEmergencyDrillsList',
    method: 'post',
    data
  })
}
export function updateEmergencyDrills(data) {
  return request({
    url: '/api/securityManage/emergencyDrills/updateEmergencyDrills',
    method: 'post',
    data
  })
}
export function addSecurityDocumentDirectory(data) {
  return request({
    url: '/api/securityManage/securityDocumentDirectory/addSecurityDocumentDirectory',
    method: 'post',
    data
  })
}
export function deleteSecurityDocumentDirectory(params) {
  return request({
    url: '/api/securityManage/securityDocumentDirectory/deleteSecurityDocumentDirectory',
    method: 'post',
    params
  })
}
export function getSecurityDocumentDirectoryTree(params) {
  return request({
    url: '/api/securityManage/securityDocumentDirectory/getSecurityDocumentDirectoryTree',
    method: 'post',
    params
  })
}
export function updateSecurityDocumentDirectory(data) {
  return request({
    url: '/api/securityManage/securityDocumentDirectory/updateSecurityDocumentDirectory',
    method: 'post',
    data
  })
}
export function getSecurityDocumentDetailList(data) {
  return request({
    url: '/api/securityManage/securityDocumentDetail/getSecurityDocumentDetailList',
    method: 'post',
    data
  })
}

export function getSecurityDocumentOperateList(data) {
  return request({
    url: '/api/securityManage/securityDocumentOperate/getSecurityDocumentOperateList',
    method: 'post',
    data
  })
}

export function addSecurityDocumentDetail(data) {
  return request({
    url: '/api/securityManage/securityDocumentDetail/addSecurityDocumentDetail',
    method: 'post',
    data
  })
}
export function updateSecurityDocumentDetail(data) {
  return request({
    url: '/api/securityManage/securityDocumentDetail/updateSecurityDocumentDetail',
    method: 'post',
    data
  })
}
export function deleteSecurityDocumentDetail(params) {
  return request({
    url: '/api/securityManage/securityDocumentDetail/deleteSecurityDocumentDetail',
    method: 'post',
    params
  })
}
export function getSecurityDocumentDetail(params) {
  return request({
    url: '/api/securityManage/securityDocumentDetail/getSecurityDocumentDetail',
    method: 'post',
    params
  })
}
export function addSecurityDocumentOperate(params) {
  return request({
    url: '/api/securityManage/securityDocumentOperate/addSecurityDocumentOperate',
    method: 'post',
    params
  })
}
